package com.imagination.applet.controller.assembler;

import com.imagination.applet.controller.api.request.AddAIImageRequest;
import com.imagination.applet.controller.api.response.AddAIImageResponse;
import com.imagination.applet.domain.aiimage.model.AIImage;
import org.springframework.stereotype.Component;

@Component
public class AddAIImageBuilder {
    public AddAIImageResponse build(AddAIImageRequest request, AIImage aiImage) {
        return AddAIImageResponse.builder()
                .imageId(aiImage.getId())
                .channel(aiImage.getChannelType())
                .topic(aiImage.getTopicType())
                .link(aiImage.getLink())
                .build();
    }
}
